//package com.ruoyi.web.controller.admin;
//
//import com.ruoyi.common.annotation.Log;
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.common.core.page.TableDataInfo;
//import com.ruoyi.common.enums.BusinessType;
//import com.ruoyi.common.utils.poi.ExcelUtil;
//import com.ruoyi.system.domain.xs.XsOrderQn;
//import com.ruoyi.system.service.IXsOrderQnService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 千牛订单Controller
// *
// * @author ruoyi
// * @date 2025-02-27
// */
//@RestController
//@RequestMapping("/system/qn")
//public class XsOrderQnController extends BaseController
//{
//    @Autowired
//    private IXsOrderQnService xsOrderQnService;
//
//    /**
//     * 查询千牛订单列表
//     */
//    @GetMapping("/list")
//    public TableDataInfo list(XsOrderQn xsOrderQn)
//    {
//        startPage();
//        List<XsOrderQn> list = xsOrderQnService.selectXsOrderQnList(xsOrderQn);
//        return getDataTable(list);
//    }
//
//    @Log(title = "批量导入数据", businessType = BusinessType.IMPORT)
//    @PostMapping("/importQNOrder")
//    public AjaxResult importQNOrder(MultipartFile file) {
//        xsOrderQnService.importQNOrder(file);
//        return success();
//    }
//
//    /**
//     * 导出千牛订单列表
//     */
//    @Log(title = "千牛订单", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, XsOrderQn xsOrderQn)
//    {
//        List<XsOrderQn> list = xsOrderQnService.selectXsOrderQnList(xsOrderQn);
//        ExcelUtil<XsOrderQn> util = new ExcelUtil<XsOrderQn>(XsOrderQn.class);
//        util.exportExcel(response, list, "千牛订单数据");
//    }
//
//    /**
//     * 获取千牛订单详细信息
//     */
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id)
//    {
//        return success(xsOrderQnService.selectXsOrderQnById(id));
//    }
//
//    /**
//     * 新增千牛订单
//     */
//    @Log(title = "千牛订单", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody XsOrderQn xsOrderQn)
//    {
//        return toAjax(xsOrderQnService.insertXsOrderQn(xsOrderQn));
//    }
//
//    /**
//     * 修改千牛订单
//     */
//    @Log(title = "千牛订单", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody XsOrderQn xsOrderQn)
//    {
//        return toAjax(xsOrderQnService.updateXsOrderQn(xsOrderQn));
//    }
//
//    /**
//     * 删除千牛订单
//     */
//    @Log(title = "千牛订单", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Long[] ids)
//    {
//        return toAjax(xsOrderQnService.deleteXsOrderQnByIds(ids));
//    }
//}
